Is it ok to upgrade kernel in PureOS?

You mean Debian Bookworm repos? How did you do that? And if you didn’t executed: sudo apt upgrade, probably is much better you don’t do that.

Answer is here: