Proton therapy promises higher dose conformality in comparison with regular radiotherapy techniques. Also, image guidance has an increasing role in radiotherapy and MRI is a prime candidate for this imaging. Therefore, in this paper the dosimetric feasibility of Intensity Modulated Proton Therapy (IMPT) in a magnetic field of 1.5 T and the effect on the generated dose distributions compared to those at 0 T is evaluated, using the Monte Carlo software TOol for PArticle Simulation (TOPAS). For three different anatomic sites IMPT plans are generated. It is shown that the generation of an IMPT plan in a magnetic field is feasible, the impact of the magnetic field is small, and the resulting dose distributions are equivalent for 0 T and 1.5 T. Also, the framework of Monte Carlo simulation combined with an inverse optimization method can be used to generate IMPT plans. These plans can be used in future dosimetric comparisons with e.g. IMRT and conventional IMPT. Finally, this study shows that IMPT in a 1.5 T magnetic field is dosimetrically feasible.