Yes pizza can go bad if you leave it longer than 4 days, even when you place it in the fridge. Where possible, eat your pizza fresh and on the same day you made it.