Probably, if I was forced to, but not without explaining to whomever was requesting it that the code is likely going to be fragile and have the possibility of breaking under certain untested conditions. I would definitely clean it up later.
I had a boss who was fond of saying: You want it bad? You'll get it bad.