Not necessarily. The Benn Act doesn't ask for just any old extension, but an extension as specified in article 50. The text of article makes clear that the extension is the result of negotiations between the leaving state and the EU. So by not negotiating or frustrating the process by negotiating something else than the extension specified in the Benn Act his behavior may not be quite legal.