Is frame number the same thing as serial number?
Yes, two phrases for the same thing.

More specifically its the frame's serial number.  Other components may have their own serial numbers too.

Any electric shifting component will likely have serial numbers which can be read by software, as will power meters or other sensors.

Small priced items generally don't have serial numbers.