Welcome to the GardenAction forum. Feel free to post a message.
You would find that the onion that is sprouting in the store, would likely grow all mishapen if you planted it now. It is already a mature onion.
You would be able to get seeds, or depending on the onion type, small onion sets, when the plant matures, which you could then plant.