Yes. Generally speaking, all legislation is drafted by the people at the Department of Justice. All bills are subject to an approval and verification process, through which the Department of Justice has an opportunity to review every clause in order to determine whether it raises any questions.
That means that a verification process is carried out. That process includes examining whether Parliament has the authority to legislate on the matter in question.