I don't really understand for what this first resistor is needed. Could someone explain me this? Would my solution work?
No I don't think so... There is no base bias on the second transistor (it should be a PNP) the first transistor is cut off when the emitter is high when it's low there is nothing at the collector for it to work with. This is a conceptually bad adaptation of a ttl gate input.Bob