That's essentially the point of the ending, yeah. Well, less so that "it doesn't make sense" and more "actually, it's entirely unclear what is even going on".
Reality is slippery -- at the very moment you think you've got a grip on what's going on, it jumps out of your hands.
You'll see this same theme reflected in many of his other books, if you end up reading and more.
That's a good way of putting it and it does fit the theme of the book. I just spent a bit thinking about the ending again and while it's not any clearer I do like it more now.
But seriously, Ubik is a great book - one of Dick's best.
Most fiction doesn't make any sense if you really think about it, much less Science Fiction, much less Science Fiction in which Reality mutates unrecognizably several times in the course of the book.
Dick was a fantastic writer. Noone can alienate me like he can.