No they do not. The only thing that affects stealth rock is typing. It is based on the pokemons resistance/weakness to the rock type.
If it 4x resists, it will take away 1/32 of your hp.
2x resists: 1/16 hp loss
0x resists: 1/8 hp loss
2x weakness: 1/4 hp loss
4x weakness: 1/2 hp loss See link texthere.