Sure! The flavor profiles of each onion are a bit different, so just note, it may alter the taste. For reference, red onions are subtly sweet and mild. White onions are strong and sharp. Yellow onions have the deepest flavor.