Yeah you need to go into 335i ownership being aware that you'll need to spend money on it
A lot will depend on how its previously been maintained but even when well looked after they can still go expensively wrong.
I've had mine for 5 years & done 50000 miles in it & it has been pretty good.