(1) While prostitution is legal in Canada , most activities related to prostitution are illegal .
(2) While prostitution in Canada is illegal , most of the activities related to prostitution are legal .

Do these two sentences mean the same thing?

Available options:
(A). no;
(B). yes;
(A).