Of course not. If it was illegal to buy and use essay papers, then these websites would be shut down. There is a controversy among professors as to whether these services should be allowed but, by law, there's nothing illegal about selling model essays, and there's nothing illegal about handing them in.