It is a preference. In the opening it is all about developing your pieces, influencing the centre and ensuring King safety. Moving pawns and Knights can both do that, and the order is often not critical.
Is it best to move a knight first or a pawn?
Opening principles. Control the center. Which is why you move the d-e pawns. Develop minor pieces toward the center. Again this is why you push the d-e pawns. Castle=king safety.
Chess Openings Resources for Beginners and Beyond…
https://www.chess.com/blog/RussBell/openings-resources-for-beginners-and-beyond
in the following see the section on Openings...
Improving Your Chess - Resources for Beginners and Beyond…
https://www.chess.com/blog/RussBell/improving-your-chess-resources-for-beginners-and-beyond
I'm like entirely new to chess (apart from playing with my dad when I was young and always lost tremendously) and i've just seen a lot of people move the knight first, so I'm curious if there's like an actual strategy behind it or if its just like a personal preference kinda thing??? thanks! :]