This will depend on your roof’s warranty. You can contact your contractor and explain that you want to install a skylight and see if that voids the warranty. In many cases, it will void the warranty. But this depends on the contractor and the warranty. Whenever dealing with a contractor, get everything in writing just to be safe.