what is the relationship between increasing the number of cores and scalability?
If the problem size (input data set and/or computation) is fixed , then NO. Amdahl's law says that. Speed up will be bounded by serial portion of the program.

If the problem size (input data set and/or computation) increases with the increase in the number of cores, then YES, Gustafson's law says that.