No, you cannot get lice from a stray cat.
Lice are species-specific, meaning they can only live on one species of animal. Humans have their own type of lice, cats have theirs, and dogs have theirs.
Cats can get fleas, which can jump to humans, but they do not transmit lice.