Can we use tanh activation function to detect outliers?

Can we use tanh activation function to detect outliers ?

Does the following image is true for dataset with outliers (after training model with tanh activation function) ?

enter image description here