Yes, the linux kernel will work! I’d say it’s even more likely that wifi, soundcard, etc. work without any problems than if you’d buy a bleeding edge laptop (although these mostly also just work nowadays). The oldest machine I’ve got is a laptop from 12 years ago which easily runs modern linux, but even much older machines shouldn’t have a problem with that, at least not with the kernel.