Weed and joining the USMC

I am 22 and plan on joining the Marine Corps within the next year. I have used Marijuana previously, in my state it is legalized for recreational and medical use. I used marijuana when I was 21 and it was legal. Will this prior marijuana use even it was legal in my state hinder me on my military career?