Probably not, but read the FAQ just in case. There might be some issues opening a portal, especially a transdimensional portal, from inside an extradimensional space.
As a DM, I wouldn't be very keen on this. IMO, it's a convoluted loophole that solves a problem that doesn't really need...