It would depend on what your job is. For example, if you’re a financial planner, then the employer may not want somebody who is helping others plan their finances having been bankrupt themselves. In general, it is not a protected class, so an employer could fire you for filing bankruptcy. Tread carefully.