vaseline for dry skin?

could i use vaseline on my babies head and face for cradle cap/dry skin? ive been using coconut oil which was recommended by his doctor but someone on GLOW said that it breaks the skins natural barrier down and could give him a rash. would it be safe to use a thin layer of vaseline?