Generally, no. However, if the ulcer was caused due to a viral or bacterial infection, it may be contagious.