If my power cord on my laptop turn off cause it got hot will it ever work again because it won't come on

Will it ever work again? You mean the laptop?

Well there's no way of knowing that just yet - - you'll have to get a new a/c adapter of the correct type, plug it in and try it.

If the laptop still won't turn on, it's most likely to have suffered internal hardware damage.
 
Right - - new power cord then - - you definitely don't repair them unless you intend to chop off the damaged part completely and use what's left if it's long enough.

If the damaged part is undetermined then you replace the entire cord.