Yes, depositing via online bank transfer is absolutely safe.
The safety and the security of the online banking system is guaranteed by the Reserve Bank of India (RBI).
So you can feel certain that your money is in safe hands at all times!