Not really. I mean, if you're constrained from something by law, or you're constrained from something by the fact that your neighbours will take matters into their own hands and kill you, run you out of the neighbourhood, etc. - the end result is the same.
IIRC, most Northern States had anti-miscegenation laws (mostly codified during the eugenics craze of the 1920s and 1930s). I don't recall how many, if any, might have had Jim Crow-style laws. Loving v. Virginia overturned them in every State that had them.
"...segregation now, segregation tomorrow and segregation forever...." Gov. George Wallace