It depends very much on the quantity.
A small glass of wine can certainly have a slightly stimulating effect. However, in my opinion, larger amounts are definitely not recommended in combination with serious poker play.
It could influence your decisions and tend to lead to a more risky gambling behavior, which can also quickly backfire.
Especially if you are involved in bigger cash games, you should rather do without it. Why should you put yourself at a disadvantage compared to the other players?
If the intention is to achieve sustainable profits, you should keep a clear mind to ensure maximum concentration.
In home games with friends, of course, it's a different story