Yes.
Based on a quick google search the base price of the cheapest BMW and Audi comes to around 30 lakhs. A government servant who knows how to manage his finances properly can definitely manage this amount and still not stretch his finances. This is assuming that he wants to buy a first hand model.
Coming to second hand models, these cars are available at around 9–10 lakhs. This is even more affordable.
There are many government servants who take housing loans upwards of 50 lakhs. The question, however, is whether buying such a car ( which is a depreciating asset) would be a prudent decision. Everyone has different priorities in life and depending on those we can justify our actions. There is also the image you might project to others flaunting such an item. Even if you are an upright officer, it would be easy for people who want to malign you to spread rumours ( not saying that it should stop you from living your life your way).
Personally, I would never be able to appreciate buying such a car first hand. Second hand? I would have to research it more.