Cocinar oil for dandruff

Tere
Is it safe? My boyfriend has severe dandruff. Like it peels off and it's really bad. Can we use coconut oil on him so ease it up? Or what else can we use?