Yes, you can! Just keep in mind that the flavor will be slightly different since it's a different type of onion.