Yes, onion powder can be used as a substitute for fresh onions in spaghetti sauce. However, it will provide a slightly different flavor profile. Fresh onions have a natural sweetness and moisture that powder lacks. If using onion powder, start with a smaller quantity and adjust to taste. Adding some powder during the cooking process or directly into the sauce at the end can help enhance the onion flavor.