In many airports, the answer is yes. However, there are airports that close at night and other airports that simply do not permit/like airport sleepers and are openly hostile. We suggest you visit the airport guide for the airport you are inquiring about.