The questions the title;<)
Not necessarily. Here are the ways you can make an egg hatch (all ways require the egg to be in your party):
Here are ways you can hasten the progress:
You can walk, cycle, ride on the roller blades, ride a Pokémon, or run.
Hope I helped!!