Yes, you can but you need to consider a few things. A server should never be without internet or power, therefore you need to ensure redundant power supply and internet connection. Data centers have specialized hardware and there are always technicians on duty to handle possible breakdowns or to replace parts quickly.