number of threads, blocks and dims

Hello everyone,
I have a question about the number of threads, blocks and dims.
Are these numbers limited according to device?

As newer the device as more threads its block contain and more blocks may be in dims or there is fixed number of threads, blocks and dims.

Thank you