Although Aaron told the people to give him their gold earrings, he made excuses and even lied to Moses when Moses confronted him. He did not take responsibility for his own actions.
The Israelites became impatient and disobeyed God. The consequences for their sin were very serious. However, God loves us so much that, instead of punishing us for our wrong actions, He made a way for us to be forgiven: Jesus took the punishment for our sin when he died on the cross.
You need to take responsibility for your own actions and confess your sin. God has promised to forgive you through Jesus Christ. God is a God of compassion and mercy, slow to anger and filled with unfailing love and faithfulness. In the Bible, you can also learn from reading about people's mistakes so that you can avoid those same mistakes in the future.