advice

I have a friend who has terminal cancer. he won't tell me how long he has left but before I leave work (we work together) I give him a hug, just in case it's the last one I can give him. but I kind of want to give him like a friendly kiss on the cheek. do you think it's a good idea?