Technically, yes, you can e-file your 2021 return through October 17. If you e-file after April 18, you may face penalties for filing late, unless you file an extension.
If you e-filed before April 18, but your return got rejected after the deadline, you have until April 23 to correct the rejection and refile your return to avoid possible penalties.