As long as your containers are clean and sterile you should be right, pickled onions are pretty bulletproof in my experience as they should be sitting in vinegar anyway. I do heat my vinegar, don’t normally boil but get it close when adding spices etc.