Running a hidden service and a relay on the same machine

Title says it all tbh. I was wondering if it was safe, and if there are and config changes I need to make other than setting up to listen to a hidden service.