Inverse of the Gibbs Phenomenon to generate a sine wave
Square waves are composed of sine waves at the odd harmonics- i.e. 1st, 3rd, 5th, etc.  So yes, you can produce a sine wave from a square wave if you filter it with a low-pass filter whose bandwidth is at least as big as the first harmonic frequency, and whose cutoff frequency is lower than the third harmonic.