Sin was in the world before the Law of Moses. But God does not consider people guilty of sin if there is no law.