No they don't, not on sight. In the most noted incident in Nov 2008, INS Tabar requested a suspect boat stop and be searched.
The pirates (for they were) responded "Go away silly warship boat, or we sink you".
The pirates then fired on the Tabar, and the Indian Captain said "Number One, Release the Kashtan"
Paired 6 barrel 30mm gatlings
Too bad there isn’t a LiveLeak video of that engagement.
And Bravo! to India on this milestone.