Yes, it can look bad on your resume. That's why you should ensure your resume highlights your achievements or displays your recent growth rather than your deficiencies. The hiring manager doesn't want to run the risk of hiring liabilities as employees. So providing a proper explanation for your absence can boost your chances of success.