You can get drunk from cooking sherry. It is however not safe, because of the terrible hangover experience people have from consuming drinking sherry. Asides from this, it affects the liver adversely, like with other cooking wines. We recommend you try out other edible wines that are safe for drinking and use cooking wines for their main purpose, which is to cook.