It will work, but it'll start playing the sound again and again.
Every time the main loop is completed, it will check for the object hit and (depending on your code) probably register a collision. It will then start playing sound two. Again. And Again. And again...
This bit of code should ensure that the sound is only played once.
If OBJECT HIT(1,2)=1 and Sound Playing(2) = 0 then
play sound 2
endif
If the sound is already playing, then the program is not allowed to start playing it again!
Hope this helps!
On our way 'ome, on our way 'ome!