The Pope can do anything the Church—and that means the Cardinals—let him get away with.
In the short term, that is pretty much the case, especially if those to whom he is doing it and by whom he is doing it go along, which usually happens.
But if an act is actually invalid, the charade may eventually collapse.