just to add
you are new to MTB, a “better” fork may not be the golden ticket you expect, in fact, a high end fork could potentially give you far too many setup options to play with and end up further away from where you need to be
Unless you have a truly entry level fork, like a coil suntour or suchlike, you may find with more experience and tweaks, your current fork is adequate
There is a lot of learning to how a fork should feel, and sometimes it can be almost counter intuitive. Ie, my fork is beating me up, let some air out, but what is actually happening is you are packing down, due to too soft a fork or you are struggling with grip, when it could be down to tyres, or even bad technique.
Likewise, more travel isn’t always better, a better setup fork can trump more travel