What you told your friend was the prue thing to say and to think, this is what pleases God.
We can justify our choices of sin and allow the devil to make us think our behaviour is ok, he is a master at that. his first victim was Eve and the tactics he uses have not changed much over all this time, but the world we live in sure has making all things available.
But what we allow of the world into our mind, heart, body and spirit is what may make us miss out on the best God had planned for us.
Just as we have been given freewill to choose Christ, we have also been given freewill as to how we will spend our daily lives as Christians, serving Him or serving ourselves as people of this world.
We are required to wear Gods armour (Ephesians 6:11-17) to guard our mind with the helmet, our heart with the breastplate, our body with the shield, our spirit with the sword and the word, ...................or do/be as the world and pursue self pleasure.