If it's the 3.0i annd not the si , definitely , and probably si as well, depends on the brakes the wheel has to fit over.
What have got on now, what size wheels and what rims, are those rims coming with the tyres, ?
17s are OK on a 3.0Si (subject to offsets) - but I'm not sure about Ms.
OP, have a good look at the rims - you need to find their width and offset to be certain. That should be stamped on then somewhere (often on the back) - offset will be either ET then 2 digits, or IS and 2 digits if they are a BMW wheel.
Then try putting the numbers in on here:- https://www.willtheyfit.com/