The answer depends on what lies beyond the solid line. Both lines here are edge lines
, and as a rule crossing them is prohibited. There is one exception: you may cross an edge line to stop on the shoulder and then pull out from where you stopped, if stopping is allowed at that spot. In case B, beyond the right-hand line is the shoulder — it is meant precisely for stopping, so you may pull onto it. In case A, beyond the left-hand line is the median between the roadways: it is not for driving or for stopping, so the exception does not work there