No, formatting a primary drive with the operating system on it isn't possible. You must boot your PC from Windows installation media or a recovery disk. This way, a different setting is used for formatting.