Yes and no. Commandments of God are for everybody.
But not every single commandment of God applies to YOU specifically, necessarily. For example, the commandments given to wives dont apply to husbands and vice versa. Children are given different commandments as well, to obey and respect their parents.
In the old covenant some laws were given only to the levites, not for the rest of Israel. There are also certain commandments given to rich people which if you aren't wealthy would not apply to you.
There are some commandments in the Bible that are situational, for example Noah is told to build an Ark, but that does not apply to us obviously since there will never be another flood like that, as God promised.