If your return is pending, you should be fine. Your submitted e-filed return doesn't need to be accepted on April 18 for it to be considered on-time. As long as you transmitted your return by 11:59 p.m. local time on April 18, you should be fine.
If your return is rejected on April 18, you have through April 23 to re-submit your federal return either electronically or by mail.