No, you don’t need to have a 20/20 vision in order to be a pilot. According to government regulations, a 20/20 vision is not a requirement to fly as long as your eyesight problem can be managed with the use of corrective glasses. Although some airlines might require pilot applicants to have perfect eyesight, you shouldn’t be discouraged to apply and still go for it. On an additional note, if you get cleared by the Aviation Medical Examiner that you’re fit to become a pilot, then it’s an indicator that your eyesight problems shouldn’t be an issue at all.