Root quick noob question


Android Enthusiast
have had my epic for about 2 months now. been on stock (2.1) since i've had it. is it safe to perform the update that it keeps popping up to 2.2 and still have the ability to root?

or do i lose that ability if i update it to 2.2? thx in advance