3D Collision

I followed the tutorials to make some 3d stuff, and I was wondering, is it possible to make it so you can’t walk through walls and such? .fla attached