Siphoning gas is generally a bad idea, and potentially illegal depending on your location. It's dangerous due to the flammability of gasoline and the risk of explosion or fire. Furthermore, improperly siphoning gas can damage your car's fuel system.
For a 2006 Chevy Cobalt, or any car for that matter, there are safer and more reliable methods to obtain fuel if your tank is empty. Consider calling a roadside assistance service or having a friend help you get gas.