Ideally, bees need to fly out of the hive and see the Sun. This means it is easy for them to navigate, and it also means that they can start the day early and end late, as the Sun gives them a little bit of heat on colder days.
This will depend on your house. Remember that bees will fly towards light – so if the house has lights that are visible to the bees, there will be problems. I have actually had beehives built into my house once!