Sure you can! It's great if that's the onions you normally have at home. Keep in mind they're more pungent than red onions, so you might find you want to use less.