Ben Carson didn't endorse Trump until March 11, and Trump published the article on March 9th.
Now there might have been some secret dealing going on long before that.
Also, it is clear the alliance happened earlier than the endorsement. Staffers need to be paid and probably jumped ship earlier which would have been a great favor to Dr. Carson (seeing his staff still had a job, etc).