Need someone good with Android from the ROM side

Can I flash a custom Kernel and stay on the stock ROM, or that won’t work?