"Do you agree with that behavior will affect our relationship with God?"

“Do you agree with that
behavior will affect
our relationship with God?”

Sure. We should have a holy life before God, because God is holy.

Yes. We need to live our life according to God’s words. Jesus said, if we obey God’s words, he will live in us.