The immediate answer to the question above is 'No, you haven't.' However, once you've understood the lesson, and are happy playing it with confidence, yes, you can move up a couple of frets and play the same stuff in another key. No sweat, eh..? Once you're happy with playing 'em both, choose another key (not necessarily two frets up, but it could be...), rinse and repeat. You'll then have three of 'em nailed. Not bad, eh..? It might take a few days, or a few weeks; that depends. However, in doing that (and knowing which key is which...), it'll probably 'click' ('light-bulb' moment...) that you can in fact, do the same anywhere on the neck, and you'll already know what's happening. No need to 'study' each one in isolation, just one or two and the others will sort themselves out. Don't look to the summit of that mountain, just to the next low ridge to cross. Before you know it, you'll be at the summit. Bravo..!