Welcome, @lesleymaeallen! Glad to have you here in the NerdWallet Community forum!
Hard inquiries can certainly have an impact on your credit score. The impact fades over time, though.
I found this thread that I think is worth reading about the impact of hard inquiries:
But this NerdWallet article describes what factors affect your credit score, and how much each is weighted:
What Factors Affect Your Credit Scores?
To quote the above article:
The two major scoring companies in the U.S., FICO and VantageScore, differ a bit in their approaches, but they agree on the two factors that are most important. Payment history and credit utilization make up more than half of your credit scores. Focus your attention mostly on those two while keeping an eye on the other factors.
So, while hard inquiries do matter, there are other factors that matter more, and improving your credit score isn’t a sprint, but a marathon. Being consistently responsible over time with spending and paying off debt has been working well for me.
I hope these resources can help you, and I’m sure another Nerd will weigh in soon with even more information you can use. Once again, welcome!