Yes, you can hook up an RV to a house sewer, but you need to be sure that the connection is secure and there are no leaks.
You also need to be sure that the house sewer can handle the additional waste.