Yes, and if you're paranoid you can write
if (comptime T == u8) {
// code
}
to guarantee that if you're wrong about how the compiler behaves then you'll get a compiler error.