I think that when the main focus of the work is sex then it could be considered porn. When sex is just a part of the total work then it is not.

Lee