Can I apply to a PhD program if I will be graduating with my undergraduate degree in the summer term instead of the spring term?
(Assuming USA) Yes, you can apply if you are graduating in the summer.  No, I do not see any reason why you should not do this.  You should probably explain your plan and the reasons for it in your application.