not quite. what if ...?
also, the range of arctan is (-1,1). but we can easily imagine an original input of, oh say 2.
see for yourself: y = arctan(tan(2x)) - Wolfram|Alpha
the function is not defined for all real x, and is not even equal to 2x except on (-pi/4,pi/4).