No.
But if you aren't eating at a restaurant where there is a dress code stating as such, chances are, you aren't eating at a fine dining establishment.
i beg to differ. i am in NYC. barely any restaurants including 5 star ones have a dress code. the ones that do are not anywhere you would want to go anyway.