Dear Rick,
Thank you for your attention to our website.
Yes. You can apply for a Vietnam e-visa while you are in Vietnam. However, in order for the e-Visa to be valid, you must exit Vietnam and enter the country again.
Best Regards,
Heidi Phan