I once read somewhere that prayers are effective because they contain the power of many years of people praying them. An example that was given was of a non-Catholic who said a novena and it worked for them. So even if you don’t believe in everything stated in a prayer, it can still be effective.