Laseer distance sensor on a stepper motor

hello,
Is it possible to attach such a sensor:
https://www.alibaba.com/product-detail/100m-OEM-prices-laser-distance-measuring_60587764265.html?spm=a2700.7724838.2017115.89.3d9b5fafKQ72UH&s=p&fbclid=IwAR3s1pHf68iWv_FQoPNSCHefDHm2XeqAzkmeLyDpvdoRN5-9RiRigkh-S1s

on a stepper motor so as to measure the distance of a wall or a furniture?

Yes.

Just don't make too many turns or your wires will get messed up.

Add a slip ring connector and a “hollow shaft” stepper motor and you can spin for long, long time.