You don’t have to be a musician to write a parody, though perhaps an ear for poetry might be helpful.
If you’d like to improve your skills, you might want to listen to pros like Paul Shanklin and Weird Al Yankovic.
Thanks for the tip, MaceM. I am familiar with the work of those guys but I think I’d leave this stuff to the pros.