The short answer is No, the crew member shouldn't have spoken to you like that.
The only way something like that is somewhat acceptable is if said with a cheeky grin and a laugh - IF you've already had some kind of interaction (to establish a rapport and whether the customer is open to a bit of banter.