Can I control the multiple gpio pins of range pi through the internet?
Yes, but if you are going to expose Node-RED to the internet you need to ensure you are doing it securely. Please read the forum posts about the crypto miner to understand what can happen when you get it wrong.