No. You simply have to update the package list before you do that. So, from a root shell, first type
apt-get update
And only then
apt-get install --only-upgrade bash
Note that the upgrade process may ask you to confirm the replacement of various files. I’d go with the defaults it offers.