No, sterilizing shouldn't remove any nutrient from your soil rather it is meant to remove any impurities and fungus. However, some methods can reduce the nutrients in the soil which include the use of an oven. The best way to keep your soil healthy and retain nutrients is to sterilize using steam and replenish the nutrients lost by adding a dose of slow-release fertilizer pellets.