Sure, but that’s not accounting for rhythm, different instruments, etc.
Here's a good example of music that stands on it own right despite using the melody of despacito: https://www.youtube.com/watch?v=ydqReeTV_vk - I'm pretty sure that most people at HN will appreciate this one whether they like despacito or not :)