Sort of. Unix time does not count leap seconds, all days are 86400 seconds long in Unix time. So the actual number of seconds since the epoch is a bit larger than what time() returns.
I don't know how Windows deals with leap seconds (its epoch is in 1601 or something like that). Edit: it doesn't, the clock goes 1 second ahead of UTC and it's then fixed by NTP.