It is okay for two companies to support me for H1B drawing?

If two companies are willing to sponsor me for H1B, can I submit two applicatons for the H1B drawing? Is it legal for the drawing? If two offers are accepted, do I have the risk that all my offers will be revoked by the government?