Correct.
I covered castling into mate in one on one of my early blogs.
This is from that blog.
Players castling into mate in one. I have found 116 examples of this on the 1400 database.
I’ll show 4.
Here is the shortest. 7 moves.
Bobla45 - SammyJ, RHP 2008
1.d4 d5 2.Nf3 Bf5 3.Ne5 f6 4.g4 Bg6 5.Nxg6 hxg6 6.Bg2 Qd6 7.0-0 Qxh2
Next we see White winning easily but stopping mid-attack to defend a lowly g-pawn.
He drops a piece and castles giving Black a happy choice of mate on g2 or h1.
skullinator - TryorFail, RHP 2009 (16 moves)
1.c4 e5 2.Nc3 Nf6 3.Nf3 d5 4.Nxe5 Bd6 5.d4 Nc6 6.Nxc6 bxc6 7.Bg5 h6 8.Bxf6 Qxf6 9.e3 Ba6 10.Qa4 Bb7 11.cxd5 Be7 12.dxc6 Bxc6 13.Bb5 Kd7 14.Ne4 Qg6 15.g3 Qxe4 16.0-0 Qg2
What comes around goes around - learning from your losses.
In a safe and tepid position Tukumnieks castles and is mated on the spot.
(we see this lad again in the next game)
Tukumnieks - Blanca, RHP 2008 (11 moves)
1.d4 d5 2.Nc3 Nf6 3.Bf4 c6 4.Nf3 Bf5 5.e3 e6 6.a3 Bd6 7.Ne5 Qc7 8.Bd3 Bg6 9.Nxg6 hxg6 10.Bxd6 Qxd6 11.0-0 Qxh2
Here is the longest game (25 moves) it does appear that Black is going
to do the check mating in this game.
Note White’s ultra cunning 24th. move.
Here he can play 24.QxR+ and Qf3 but no, he is waiting for 0-0-0.
This is our hero Tukumnieks in action again, this time he knows the danger
of castling without thinking.
Tukumnieks - sameeh, RHP 2008
1.d4 e6 2.e4 b6 3.Bd3 Bb7 4.Nf3 Nf6 5.Qe2 Nc6 6.Be3 Nb4 7.0-0 Bxe4 8.Bxe4 Nxe4 9.a3 Nd5 10.c4 Ndf6 11.Ne5 Bd6 12.f3 Ng3 13.hxg3 Qe7 14.Nc3 Nh5 15.Bf2 f6 16.Nd3 Bxg3 17.Rfe1 f5 18.f4 Qh4 19.Qf3 Bxf2+ 20.Qxf2 Ng3 21.Qf3 g5 22.fxg5 Qxg5 23.Kf2 Rg8 24.Nf4 0-0-0 25.Qa8