Do you have to have sex in order to get pregnant?

Is there any other ways you can get pregnant without sex? Or is sex the only way besides ivf?