Is this normal?

My son who is 4 years old, every time he goes poop his wee wee gets hard. Like rock hard! It's weird af! But idk if its normal or not.