Yes, they probably have to be taught. They should be locked in for 3 or 4 weeks so they learn what home is. At night, they should be moved to the roost where you want them to sleep. They will learn in just a few days where the proper sleeping roost is.
Once the 3-4 weeks is over, they will...