No. You should not put detergent and fabric softener together in a washing machine. It would be best if you put the fabric softener after the washing gets completed.
To get the best results, you can put the fabric softener during the rinse cycle. Always try to put the exact recommended amount of fabric softener.