If you want to talk to the Internet which contains all unknown IP networks, then you need a default gateway. Otherwise if all destinations are known you can use static routes.
Usually you configure the default gateway to send all unknown destinations to a router that has the knowledge of all other routes.
sincerely
Patrick