3 year old keeps pooping in the tub

My son is 3 will be 4 in late October as of late he has been, pooping in the tub when before he would let us know he had to poop or pee so we could let him out and he could use the bathroom, I'm growing increasingly worried and thinking he's regressing because he never acted like that before and he has also started throwing tantrums like his 1 year old cousin who is hell on wheels, I'm just concerned at this point I'm thinking of scheduling an appointment with his pediatrician because that is not normal