The short answer: Yes. You'll need to download an app and purchase a few pieces of equipment, but using your phone as a universal remote is no longer a tech dream. Some IR blasters attach to your Internet router and capture signals from your phone and then transmit them to your TV, stereo or DVD player.
How can I control my TV with my phone without a remote?
https://www.youtube.com/watch?v=4fKTQKNM38M&vl=en
Can I use my smartphone as a remote for my TV?
If your phone has an IR blaster, download a TV-remote app like AnyMote Smart IR Remote. Not only can it control your TV, but also any device that receives an IR signal—set-top boxes, DVD and Blu-ray players, stereo equipment and even some air-conditioning systems.