You can't tell that easy. Look at the schematic, on what the transistor is supposed to do and decide then.
Sometimes you can replace exotic transistors with simple ones, if they don't do exotic stuff (low noise, fast, high current....)
Sometimes you can't, if the designer used that transistor for a reason.
2SD467 for example has lower voltage, but higher current rating than 2N3906.
2SD467 IS NPN, 2N3906=PNP, big NONO
Pinout also doesn't match, either. But that can be fixed with a bit of fiddling ;-)