No a sti engine will not bolt up straight into your wrx. Best bet is to get a used wrx motor or a new sti shortblock. With the sti shortblock you can use your heads, if they are good, or other wrx heads. Wiring is different, gas pedal is different.
Research hybrid engines, the cost about $5k+ depending on the internals you choose.