The US for reasons that are incomprehensible to most of the rest of the world (both liberal and conservative) distinguishes pornography from prostitution. Pornography is legal artistic expression whereas prostitution is a crime in law and against morality.
Certainly there are foreign porn stars who go to work in US. You do have to wonder what they tell immigration.