We still violate God’s Law, even if we sin in ignorance. Even though someone is ignorant of the law of gravity, they suffer the consequences of violating its laws. God does, however, take ignorance into account (see Acts 17:30). See also Lev. 4:27,28; 5:17
Ezekiel 45:20And so you shall do on the seventh day of the month for everyone who has sinned unintentionally or in ignorance. Thus you shall make atonement for the temple.