No you are not introducing bad habits. We are encouraged to experiment with whatever feels comfortable to us. I have tried your way and doesn’t feel comfortable to me because introducing finger 3 on the E string just didn’t work for me. But that doesn’t make it wrong.
When I first learned this riff (many moons ago) it was with using fingers 1,2 and 3 only, 1 finger per fret. ie Finger 1 covering fret 5, finger 2 on 6, and finger 3 on 7. All the same notes and frets, just different fingering from what James uses.
Experimenting and finding your own way is key to learning the guitar