Masturbation in front of pet

Weird question, Do you ever masturbate in front of your pet ? and not to sound creepy, I meant as in like if pet walks in your room while you're flicking the bean. I always stop it if my dog walks in.