Being ordered deported will result in a bar from re-entering the US, as described above. Nevertheless, there is a second bar, based on certain conduct that could render you inadmissible to the US, that could result in a separate re-entry bar. You might be able to apply for waiver of this type of bar by filing Form I-601 or Form I-601A (depending on the reason for your inadmissibility)
Receiving an I-601 or I-601A waiver will not operate as an I-212 waiver, however — you will need to have both I-601(A) and I-212 applications approved to be eligible to even apply for a visa to enter the US. This is because the I-212 waiver is designed to remove bars based on deportation, while the I-601(a) waivers were designed to remove bars based on the conduct that led to the deportation in the first place.
The foregoing explanation of the double-bar problem is necessarily oversimplified. If you have a double bar problem, you are certainly going to need an experienced immigration lawyer.