Hello! Gravity is lost when you reach the outside of the Earth's orbit! So you would have to overcome gravity in order to officially be in space. Gravity is the first thing a rocket must overcome to reach space.
I hope this helped!
I am, yours most sincerely,
SuperHelperThingy