Yes, correct. It’s 3 years as a permanent resident (rec’d green card) including the 3 years of marriage while a permanent resident if filing to naturalize through marriage.
The OP hasn’t clarified whether they’re married to a USC and for how long. If they adjusted status another way, it would be 5 years as a green card holder.