In Indian Railways, locomotives can indeed work in multiple with each other, regardless of whether they are diesel or electric. When locomotives operate in multiple, they are coupled together to enhance their combined power.
For example, two diesel locomotives can be coupled to yield a higher total horsepower, and similarly, electric locomotives can work together. This practice ensures efficient operation and flexibility across the rail network