It's good that you have realised patterns are moveable around the guitar fingerboard, so well done! There is more mileage in learning something like this at open position with fingers that leave the index free to play lower notes once you've left open strings.
Eventually, you may well leave open strings completely when soloing - which obviously uses all those scale notes (and sometimes more!), at which point you can play in any key you like - open strings are somewhat restricting, and controlling them, and applying vibrato aren't easy either.
You've learned a one octave scale, but there are more useful shapes, starting on the bottom and going up to the top string, meaning two octaves. Lots of tunes go above that top C, and below that bottom C in your scale, so it's a bit restrictive, without knowing the extra few notes. trouble is, if you start that 'C scale' on the bottom string open, you're effectively playing E Phrygian rather than C major!