Yes. Both are natural:
It’s typically an afternoon/early‑evening snack (between lunch and dinner). Usage varies:
Meals usually take the definite article in Spanish when you refer to them generically as mealtimes:
Switch to estar with definite articles:
Spanish normally uses an article with singular, countable nouns after a preposition. En la azotea refers to a specific rooftop (the one in context).
Use en una azotea for “on a rooftop” (non‑specific). En azotea is not idiomatic.