Yes! As long as the level of compression is the same, it doesn’t matter how a compression sock or stocking looks. Advancements in technology have allowed manufacturers to provide the same amount of compression regardless of the style. Compression socks and stockings vary from cotton socks to dress socks to sheer nylon-like stockings.
So don’t worry when you’re choosing between a cotton sock or a sheer nylon or a dress sock. Whatever the level of compression is indicated is what you’re getting.