You're new to making music? :D
Let me give you the most important piece of advice I've learned in 5 years of making music:
1. Find a song you really like.
2. Try to figure out how that song was made.
3. Make your own version of that song with your own melodies and beats, but keep the structure the same.
4. Now, make a remix of the song you just made, so you can practice with changing up the structure.
5. Rinse and repeat about 50 times, with absolutely diverse songs and artists, then you'll sound like Max Martin or Skrillex for sure!
(p.s. I figured this out like 2 months ago, and I feel stupid for not doing it earlier)