Sure!
I highly recommend using the matrix-ansible-docker-deploy. It has a pretty good documentation that should not give you much trouble, if you have at least very basic self-hosting experience (i.e can get a domain, a server, and set up SSH and firewall ports), and configuring it to do what you want is usually just adding a single config line into vars.yml when setting it up.
Once you get to the configuration step in the quickstart, where you change a few rows, also take a look at the more in-depth configuration documentation, and scroll down to the chapter about configuring bridges/bridging other networks.
For example, setting up a messanger bridge is literally just adding matrix_mautrix_meta_messenger_enabled: true into your vars.yml when you are setting it up.