It's possible the IRS would eventually catch this, but not for several months if at all. Wait until your original return is accepted, processed and your refund is paid. Then you can prepare an amended return.
If your return has not been accepted yet, and comes back rejected for some reason, that is the same as never being filed. You can fix this error, as well as any other errors, and re-transmit your return (this is not an amended return).