Anthony Bourdain might chastise you for doing it but I feel that as long as the restaurant doesn't specifically forbid it or you don't pull out your tripod and make a production of it and interfere with others, I don't see the harm. And if you need to use a flash, you're doing it wrong.