Yes, you can generally use different onion varieties interchangeably in recipes. However, keep in mind that different onions may have slightly different flavors and textures, so the end result may vary slightly.