Heat olive oil in a large pot over medium heat.
Sauté onions and garlic until translucent, approximately 5 minutes.
Add pumpkin, sweet potato, ginger, and nutmeg to the pot; stir to combine.
Pour in vegetable broth and bring the mixture to a boil.
Reduce heat to low, cover, and simmer for 20 minutes until vegetables are tender.
Use an immersion blender to puree the soup until completely smooth.
Stir in coconut milk and season with salt and pepper.
Heat through for 3 minutes before serving.