This is a useful exercise, you are alreasy "Ghosting" something that has been popular before so in theory you should be able to come up with something
that could be a hit again. It's very important to listen a lot to the top 40 if you want to write a pop song. And this is a good method of doing things.
Of course you have to present it differently. Maybe change a chord here or there or use a different beat, use different instruments/sounds and of course the melody
has to be different.
I have only ever done this once with a Katy Perry track, of all people hahaha I don't like her at all! But I did it as an exercise and it can work very well.
I don't aim to write pop songs and I want EVERYTHING I do to come out of my own head so I only did it once.
You can read an excellent book about all this, well worth the money iof you ask me, called - The Craft and Business of Songwriting, by John Braheny.