When to add salt to homemade pinto beans?

I heard you're not supposed to add salt until they're soft because if you add if before the salt won't let them get soft..