If your wages are being garnished for a judgment entered against you on behalf of a creditor that you owe, yes, filing for bankruptcy will prevent that. If the garnishment has not begun before your case is filed, then the bankruptcy will prevent the garnishment from beginning at all; if the garnishment starts before your case is filed, then the garnishment will stop immediately after your case is filed. To ensure that the proper parties are notified to stop the garnishment in a timely manner, you should give your attorney contact information (such as an e-mail or fax number) for your employer’s payroll department, or alternatively, obtain a copy of the notice of filing from your attorney and present it to your payroll department yourself.
There are a few exceptions to all of this. Bankruptcy will not stop withholdings for income taxes nor child support. If you do not receive a discharge for any reason, the garnishment will only be suspended for so long as the stay applies in your pending bankruptcy case, after which time, the creditor can reapply for the garnishment to resume. Finally, if you have filed multiple bankruptcy petitions within 12 months, the stay might only be temporary or it might not kick in at all unless your attorney files a successful motion with the court to extend or implement the stay.