It is the common practice to deworm 2 weeks before farrowing.
In general it is considered to be safe to give vaccine, deworm, vitamins etc in the last trimester of sows' pregnancy.
All questions are welcome and we encourage people to ask more question. By doing so, more people can relate or participate in the discussion.