It is never bad to protect yourself. Yes, you can do this without problem. But it may be harder if you eat at vendors on the street. My biggest worry would be that even if a food has been removed from the dish, it could still be contaminated. I don't know what your triggers are, and how bad your reaction, but peanut allergies can be very sensitive and difficult when eating out in India.