Will this circuit work containing 2 transistors?
Yes, you are on the correct path, you just need to add base and collector current limiting resistors. What you are trying to achieve is called AND gate. Picture is taken from http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/trangate.html#c1