If you’re setting the shape once, it should be okay, but the Microsoft documentation doesn’t explicitly say anything about supposed limits of the window shape system.
For sufficiently large and complex shapes you might want to use chromakey or per-pixel alpha instead.