Yes, but dmesg will give the kernel log of the running kernel. For the kernel log of the previous boot, check the journalctl output, e.g. journalctl -k -b-1 (run as root).