No. You can’t do same things with them. They are entirely different.
CSS is a way for styling the elements you see on the document. It provides no logic on it’s own, you can’t do programming with it. CSS can do some tricks that make it seem like you’re modifying the document, but you really aren’t touching it all. It is only what you see that changes. Never the underlying logic or structure.