Yes, the automatic stay does apply to tax collection efforts. Taxing authorities, including the IRS, must comply with the automatic stay and go through the proper channels if they seek to obtain relief from the automatic stay. The automatic stay can stop tax levies and tax foreclosure sales.
Chapter 13 bankruptcy is often an ideal solution to tax problems.