Is my baby able to think?

See below. Depends on how you define think. The baby is able to know what it wants, but doesn't have the mental capacity to determine long term planning and consequences of actions. This can take until well into the twenties.
Yes. While they may not be able to do math problems, even newborns know the smell and sound of their parents and can express their needs.