Are we allowed to transform the continuous target variable by creating a log transformation in order to have a normal distribution?
If your objective is to convert non-normal data into something that looks more normal / gaussian - try the Box-Cox Transform here.
It is a family of transforms that looks at your data - and provides the best possible transformation.