Deductions & credits

Thanks-so any cost incurred prior to death has to be either included in the final year return(if deductible) or in the estate tax return, if that applies.  The estate income tax only applies to costs or income incurred by the estate, like administration or legal costs, and income prior to distribution.  Is that right?