You don't need religion to design a cool building.
Ideas may not form without certain prerequisites met beforehand. Had religion never been created, the world would be completely different.
And besides, if everyone through time had been Atheists, why would they have designed buildings of worship? :P