Basically I want to perform an FFT to find the frequencies of the sound, then stretch the frequencies (for example a stretch by 2 means copy the value of the fourier coefficient X(n) to X(n/2) then use an inverse FFT. Will this work ?
Your approach intuitively makes sense, but it will not work the way you probably imagine. Homogenous stretching in frequency domain is exactly equivalent to stretching with the inverse factor in time domain. This holds for the continuous signal domain and up to aliasing also for the discrete domain.
What this means is that if you perform this operation on a windowed section of your audio all you get is a locally time-domain resampled signal, i.e. the window frame is just played back faster or slower. If you combine this with some kind of overlap add scheme you get something that is usually called granular synthesis.
If you pick the right grain size and overlap you can make it work with a lot of audible artefacts, but only for signals with a single pitch. And, like I said above, you don't need any kind of Fourier transform for that.
There are way better methods if you want to pitch shift single pitch signals or even polyphonic signals. Monophonic methods usually start with first determining the pitch. So this might be a good starting point for your research.