From what is evident in many of the answers people provide when it comes to understanding the Bible is the lack of insight possessed. Many talk about being born again and yet they have no real understanding of what this entails. They are not alone, though.
Nicodemus was a teacher of Israel. Jesus upbraided him for being a teacher of the Old Testament and his lack of knowledge regarding being born of the Spirit.
Now there was a man of the Pharisees named Nicodemus, a ruler of the Jews.2 This man came to Jesus[a] by night and said to him, “Rabbi, we know that you are a teacher come from God, for no one can do these signs that you do unless God is with him.” 3 Jesus answered him, “Truly, truly, I say to you, unless one is born again he cannot see the kingdom of God.” 4 Nicodemus said to him, “How can a man be born when he is old? Can he enter a second time into his mother's womb and be born?” 5 Jesus answered, “Truly, truly, I say to you, unless one is born of water and the Spirit, he cannot enter the kingdom of God. 6 That which is born of the flesh is flesh, and that which is born of the Spirit is spirit. 7 Do not marvel that I said to you, ‘You must be born again.’ 8 The wind blows where it wishes, and you hear its sound, but you do not know where it comes from or where it goes. So it is with everyone who is born of the Spirit.”From reading the Gospel of John (3:1–10), being born again is a matter of being born of water and being born of the Spirit. And any teacher of the Old Testament ought to understand this. At least this is what the Son of God said.
9 Nicodemus said to him, “How can these things be?” 10 Jesus answered him, “Are you the teacher of Israel and yet you do not understand these things?(John 3:1-10)
The issue of a person being born again—which really means being born again so a person can see the kingdom of God (John 3:3)—does not absolve anybody of sin.
Being born again so that you can become aware of God and your own spirituality has nothing to do with being absolved from sin. Being born again enables the person merely to see the kingdom of God. Depending how far away a person is from the kingdom of God, like any light in the distance, will determine how significant the light is in one’s purview.
What is bad behavior?
Assuming you mean sin, this is not bad behavior. Bad behavior can mean anything (e.g. falling off a bike, tormenting a dog, swimming with sharks, etc). Sin is the violation of the Ten Commandments. Sin has nothing to do with falling of a bike, imitating a dog bark or trying to ride a white shark.
For a person to be absolved from sin, this is another matter. Being absolved from sin has nothing to do with being born again. As is evident from the above, being born again is about being empowered to see the kingdom of God.
Having One’s Eyes Opened To See The Kingdom Of God Is But The Beginning