Many international flights arrive into DEL around midnight, so you should be able to get to a hotel at that time.
Whether it is worth it is up to you, but if you haven't seen Delhi or maybe won't be back for a while, I think 2-3 days would be good to spend there. There are plenty of things to see/do.