first question is : is it a glass "terrarium" or screen..if so yes..just only expose half of the cage to the window..that way they have a cool side and non exposed side to escape from heat and uvb..if the temps stay in a resonable range..its good brain stimulation for them to look out the window..and pure sunlight through screens is also a good suppliment to your lighting, and d3 intake..