Cooking does diminish the alcohol content in dishes that call for beer, wine or spirits, but it won't remove it in its entirety. This article discusses this in detail.