That’s correct, but sin will land you in hell, whatever the sin is.
As James says, if offend in one point of the Law, you are guilty of it all.
Literally, "guilty all" as there is no "of" or "it" in the Greek, and is either saying that such is guilty of sin as all law-breakers are, or it is using hyperbole, as in "the world is gone after him" in Jn. 12:19.
Most commentators hold that he is using a form of rabbinical speech, in which the law was considered to be a whole, thus like as persecuting one member of the body of Christ can be said to be persecuting all, so one who breaks the least of the commandments is in this sense guilty of all.
But while one trespass renders one a guilty law-breaker like all the rest re, yet in the strict judicial sense Ja. 2:10 cannot be teaching that one is personally culpable of breaking every single law, as this would be contrary to God's own teaching on His jurisprudence.
For rather than an having a lost mother whose sins (love of which keeps her in unbelief) are petty selfishness, smoking and occasional over eating being as guilty of sins as Stalin and suffering the same , God punishes sins according to light and grace given (thus "greater damnation" for the Pharisees, and believers are also most accountable) and that kind of sins committed ("least of this commandments", versus the greatest).
Woe unto thee, Chorazin! woe unto thee, Bethsaida! for if the mighty works had been done in Tyre and Sidon, which have been done in you, they had a great while ago repented, sitting in sackcloth and ashes. (Luke 10:13)
For if we sin wilfully after that we have received the knowledge of the truth, there remaineth no more sacrifice for sins, But a certain fearful looking for of judgment and fiery indignation, which shall devour the adversaries. (Hebrews 10:26-27)