In preparation of future clinical trials employing the Mobetron electron linear accelerator to deliver FLASH Intraoperative Radiation Therapy (IORT), the development of a Monte Carlo (MC)-based framework for dose calculation was required. To extend and validate the in-house developed fast MC dose engine MonteRay (MR) for future clinical applications in IORT. MR is a CPU MC dose calculation engine written in C++ that is capable of simulating therapeutic proton, helium, and carbon ion beams. In this work, development steps are taken to include electrons and photons in MR are presented. To assess MRs accuracy, MR generated simulation results were compared against FLUKA predictions in water, in presence of heterogeneities as well as in an anthropomorphic phantom. Additionally, dosimetric data has been acquired to evaluate MRs accuracy in predicting dose-distributions generated by the Mobetron accelerator. Runtimes of MR were evaluated against those of the general-purpose MC code FLUKA on standard benchmark problems. MR generated dose distributions for electron beams incident on a water phantom match corresponding FLUKA calculated distributions within 2.3% with range values matching within 0.01mm. In terms of dosimetric validation, differences between MR calculated and measured dose values were below 3% for almost all investigated positions within the water phantom. Gamma passing rate (1%/1mm) for the scenarios with inhomogeneities and gamma passing rate (3%/2mm) with the anthropomorphic phantom, were>99.8% and 99.4%, respectively. The average dose differences between MR (FLUKA) and the measurements was 1.26% (1.09%). Deviations between MR and FLUKA were well within 1.5% for all investigated depths and 0.6% on average. In terms of runtime, MR achieved a speedup against reference FLUKA simulations of about 13 for 10 MeV electrons. Validations against general purpose MC code FLUKA predictions and experimental dosimetric data have proven the validity of the physical models implemented in MR for IORT applications. Extending the work presented here, MR will be interfaced with external biophysical models to allow accurate FLASH biological dose predictions in IORT.