You might be able to avoid a failed quest that way, but would then just end up with an incomplete quest.