No, it will not hurt the baby.
Coffee? I hope it wasn't hot enough to burn your skin. Not sure that coffee would have been the first thing i thought of to put on the cut; or even the last thing. If the cut is deep, please recommend that you see a clinician.