I do not think giving your cat some coconut oil is dangerous in any way, and it does have some medical uses in pets.
But it is a type of fat, and you need to keep this in mind so your cat does not gain weight, so please limit the amount you give your cat.
One of the positive effects of giving coconut oil is a softer stool, and it can help your cat to pass hairballs a little easier.
link:https://bostonstreetvet.com/2014/12/12/10-uses-for-coconut-oil-for-pet-health/
You can use coconut oil on the cat's paws if they are sore, and it can be used to treat the cat's dry skin.
link2More information about this could be found in external articles: one at bostonstreetvet.com about usage of coconut oil for pet health and https://www.organicfacts.net/coconut-oil-catsanother one at organicfacts.htmlcom about usage of it in cats.
Remember that only clean, unaltered, food-grade coconut oil is safe for pets.