Can cuCtxSynchronize be used to return errors for synchronous functions as well ?

Hello,

My question is the following:

Can cuCtxSynchronize be used to return error codes for synchronous functions as well ?

So can this function be used as a general “last error code” returning function ?

Bye,
Skybuck.