Can do but just for fun. Running multicore Xeon CPU, latest of E5 V4 series as example just getting cents daily...
There's no way to do it where it's profitable at all?
Xeon E5 V4 with 20 Core (40 threads) would yield somewhere between 0.20 - 1.00 USD/D before minus fees (developer fees/pool fees) and minus power consumption of 150-175 watts & extremely hot. It's not worth it. While servers idling, they're not consuming power as the CPU area at lower power states hence less heat dissipated. But at full throttle, it will make small money, minus power it consume, minus cooling (AC) that you have to provide.
Mining XMR with a xeon E5 2696V3 with the trick to gain higher all core turbo (https://forums.anandtech.com/threads/what-controls-turbo-core-in-xeons.2496647/) gives around 950 h/s, which is higher than most video cards excepting the new RX vega: around 2 $/day depending on xmr/usd rate and network hashrate...
I have gained more with mining some coins with new algo the few weeks after launch (before gpu mining ).
Did you do this using a server? If so, did you make a profit?