How to control the output current in when using a transistor as a switch?
When the transistor is not active Vout will be equal to the Vcc and the current will become very high right?

No, the current through the transistor and RLwill be zero. (Look at your switch equivalent. Where could the current flow to?)

So if I want to add a combinatorial circuit or any other IC what should I do about that?

Adding a second switch in parallel with the existing one will create OR logic. Switching on either one will power the load, RL. In the transistor circuit that means adding a second Rin and transistor.