Dreams are at least somewhat influenced by your recent thoughts and experiences. For example, many studies found that people dreamed more about disease and confinement during the pandemic (here's a medical journal article about it). You probably have a higher chance of influencing the subject of your dreams if you focus on the desired subject enough during the day.