Yes, all lines in Photoshop are made up of vector shapes which means you can go into the Layer panel and delete specific segments of your line shape. You can also use Eraser tool or any other shape tools like Rectangle/Ellipse to cut out parts of your lines.