Since forming an LLC company in the USA does not provide rights such as citizenship and work permit to the company owner, it is not possible to obtain an SSN by only forming an llc in the USA.
After forming an LLC company and bringing your company to a certain income level, you can apply for visas such as the H1-B visa by obtaining a work permit. If your visa application is successful (just forming an llc is not enough for an investor visa, there may be different criteria), you can proceed with the SSN obtaining process after obtaining a work permit. You can consult a visa expert for these procedures.