It's not the best practice, a much better solution would be that you place your main keyword in h1, and make some kind of variation for h2, or even better, to put there other phrases that you also want to target but that aren't exactly your main keyword. I usually do it like this and have good results.