Not quite.
Random Movement is often misunderstood. The sequence (BRB p. 74) is:
1. Pivot the centre of the Random Mover to face the direction in which you wish it to travel.
2. Roll the dice shown in the model's profile.
3. Measure the distance in a straight line to see whether you come into contact with an enemy (before actually moving!)
3.a If the move is found to take the unit into contact with an enemy this counts as charging, and this is resolved using the normal rules for charges and using the distance rolled as its charge range, i.e. move in a straight line with one free wheel of 90° to get into contact with the enemy, and then either you or the enemy closes the door. During this charge, you can also move to within 1" of other units.
3.b If no charge is made, move the model directly forwards a number of inches equal to the total rolled by the dice. If the random move brings the unit to within 1" of a friendly unit or impassable terrain, it stops immediately and cannot move further during that Movement phase.
Note that charge reactions cannot be declared against enemies with the Random Movement special rule.