Yes of course this is possible. I’m building such a robot right now with ultrasonic sensors (HC-SR04) that function as range finders for the collision avoidance system. And for the path planning we’ll be using different sensors. But this can also be done differently.
In the future we want to implement path planning around an obstacle but that is quite difficult so we’re not doing that right now.