if by "do" math and logic, you mean spit out what seems most reasonable then yes.
ChatGPT doesn't "know" anything, its just a prediction engine. if you ask it what 2+2 is, it will tell you 4, but it didnt actually do math. it only said 4 because everyone else said it.
there is no generalizable reasoning going on there.