Moving from BDB5 to BDB18

From: Jos Chrispijn <bsduser_at_cloudzeeland.nl>
Date: Mon, 16 May 2022 07:40:57 UTC
Currently I use bdb5. Due to expiration in july next I read that it is 
recommended to upgrade to bdb18.

I installed bdb18 and changed /etc/make.conf accordingly:
WITH_BDB5_PERMITTED=yes
DEFAULT_VERSIONS+=bdb=18

Currently installed:
db18-18.1.40                   Oracle Berkeley DB, Release 18.1
db5-5.3.28_8                   Oracle Berkeley DB, revision 5.3

Removing bdb5 results still in a warning:

Installed packages to be REMOVED:
         apache24: 2.4.53_1
         apr: 1.7.0.1.6.1_2
         db5: 5.3.28_8
         mod_php80: 8.0.18_2
         p5-BerkeleyDB: 0.64
         postgrey: 1.37_3
         serf: 1.3.9_6
         subversion: 1.14.2_1

Number of packages to be removed: 8

Does this imply that I have to configure the package above to be used 
with db18 and recompile them?
Your help is appreciated.
Thanks, Jos