Earlier quoted context omitted.
Why not? If it gets the job done (probably faster too). I would even suggest that be realistic and allow copy/paste during interviews too!
So that interviewers can gauge your ability on searching & referencing code examples from the web? Who's being realistic?
Being able to search and separate the wheat from the chaff is most definitely a skill. Unless you always want to be reinventing wheels.