No grammatical rule says it is always wrong. In your example it doesn't look good because John doesn't own yesterday. I suggest: John's statement was hilarious yesterday.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Daithy"It's almost as funny as John's statement he made yesterday.""It's almost as funny as the statement John made yesterday."