Normally, yes. But it depends on the specific type of bee. Most bees require their apiaries to have direct line of sight to the sky, and most require some form of flower (or vine, fern, cactus etc depending on bee type) near them.
One of the notable exceptions to this, are Rocky Bees, which...