Yes, at a funeral respect for the deceased is paramount. White shirt and black tie are the thing.