GA will only track the pages on which you put the tracking code, regardless of where the page is located (unless you start messing with things like settings or domain filters, etc.).
So, IOW, yes, that's fine. If you do not have a tracking code at mysite.com/somePage.html, it will not track this page (although it may appear as a URL in some reports, for example, link to a URL or exit link or something else , like on any other page, do not track)
source share