Yes. E-bike rides count toward your fitness, because they should. You still pedal. You still get tired. You still build base. RideTool doesn't penalize you for the motor.
That's enough for RideTool to know what you were riding.
You see the same things you see for any ride, distance, time, elevation, heart rate, calories burned. If your bike has a power readout or your watch logs heart rate, that feeds the effort score, so the work you did is what gets counted.