If your employee legally changed their name due to marriage, divorce, court order, or any other reason, they must tell Social Security so they can get a corrected card. They cannot apply for a card online.
They will need to show the required documents. See Learn What Documents You Need to find out what documents they will have to show. They should fill out and print an Application for a Social Security Card and take or mail the application and documents to their local Social Security office.