When attending a dinner party at someone’s house, it is customary to bring something, and for most people that “something” is a bottle of wine. This is perfectly fine, as long as you understand that you may not get to drink any of it.
The wine one brings to a party is supposed to be a gift for the host, thanking them for opening up their home and cooking a meal. They should be able to enjoy it whenever they want, which could be during the party, but shouldn’t feel any pressure to serve it to you or the other guests. A simple “this is for you to enjoy later” usually clarifies any expectations around the matter.
If you had a particular bottle in mind for the meal being served, you can bring it for yourself, but (if you want to be painfully polite) ask the host first. None of my friends are this fancy, but it’s possible the person serving you your meal has planned a pairing, or picked a special bottle (or bottles) for the occasion, so check and see if there is anything else your host needs.
You should also expect to share any booze you bring, as you are entering a communal dining situation, and hoarding alcohol at the end of the table is a bad look.