The 335i motor may not be exactly the same, but I would rather suggest you to consult the user manual of the vehicle. It contains all the desired information on the motors. And suppose if you lost or misplaced the user manual, you could get a copy of it for free on manuls.co.
https://manuals.co/