Yes you can.
- Getpoint
- Create a ray line.
- Then ssget with string mode "_X" for all polylines in current space.
- Then iterate through all selected polylines then sort them based on their closets intersected point to the first point you picked then first element of the list must be the polyline that surrounds the point.
Good luck.