Yes, all your devices should be on the same network to use AirPlay, and to AirPlay on other Apple devices, they should be using the same Apple ID.