Yes you can. You need to set the values in the Prismatic joint to 0, and then add a kinematic relationship around the joint to include more complex models.
We have a dedicated library example called Multiphysics on the File Exchange that explains how to connect Simscape 1D to Multibody 3D:
you can install it directly from your add-ons access in MATLAB:
Then you can open of the example to see how to implement it using special blocks for connecting 1d with 3d, eg the example with friction on a prismatic joint:
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.