Using the same project with another source

Is it possible to use another source code for existing project?

It is definitely possible, why wouldn’t it be? Using existing source code with another project must be possible too, although I haven’t tested this myself.