"during departures or arrivals, the selection of a pitch mode other than VNAV PTH or VNAV SPD will result in a risk of violating procedure altitude constraints."
B777 FCTM 1.38
So yes even in VNAV SPD it will still comply with Alt constraints in the FMC if the MCP is set to a lower altitude as in the case for a descent.