No Seriously.
Danish goalkeeper Kim Christensen has been filmed doing exactly that before a match. It was a major match in the top Swedish league and was only noticed at half time by one of the referees. In Sweden, the goalposts are not fixed to the ground allowing them to be moved.
He will probably get a fine and a suspension from the game for this act. Especially as he has admitted that this was not the first time.
More here