I suggest that you move on to the next lesson; however, in your daily practice, always work on the chord/s that you are having difficulty with until you're able to do them perfectly!
Truth is, I myself had difficulty doing not only the B major chord but also the F major chord, up to this time. I always try my best to do it everyday! Using my electric guitar (because the fretboard is thinner and easier to fret) I could do them! But with the acoustic, I am still struggling.
Down the line, when you reach the "barre chords" lessons, you will have another chance to fret the F and B major chords, and they will be a bit easier to do than the open F and B major chords, believe me!
If you don't move on to the next lesson, you will be stuck with that part of the lesson, just because of the problematic B chord!!!
Good luck!!!
Lycaean