Yes you can you do stuff. But when you come back you have to go thru the security check again
Depending on if your flight is local or international, you can do whatever you please. However you will have to return to your terminal within an approved time (2hrs for local and 3hrs international) so you can go through security and be at your gate to board your flight.
Thanks! Your answer is awaiting moderation.