Yes, people sinned even before the law was given. But it was not counted as sin because there was not yet any law to break.