well in my opinion it can sometimes be ok but sometimes not ok. It always depends on the situation, it can also end up being very hurtful so just be careful if you do lie. :)
I think that in the end, the truth is always better. I mean, yeah, there are certain exceptions, but eve at that, I feel like its so much better to tell the truth. Bc that means trust and you won't have (that big of) a conscience