No. It shouldn't. You just theoretically need a sanctum, so theoretically if you were in that sanctum you could theoretically be able to cast a 2nd level spell. Whether or not you are able to cast a 2nd level spell at that exact moment is not relevant.