Use the petrol tap with the engine running?

Hello guys, is it good for the bike if you press the fuel tap on running engine or even on the ride to put it on the position OFF or reserve?