John 14:14 If you ask anything in My name, I will do it. There is a condition to getting answers to your prayers.
1. Believe in Him
2. Obey His commands
3. Love one another
You can ask in His name but be sure that you qualify to ask. The earnest prayer of a righteous person has great power and produces wonderful results.
John 16:26-27 In that day you will ask in My name, and I do not say to you that I shall pray the Father for you; for the Father Himself loves you, because you have loved Me, and have believed that I came forth from God.