is it safe to have sex if i have genital wart on my penis?
No, it is not.
Genital warts are caused by HPV (human papilloma virus). This virus can be spread by direct skin-to-skin contact. I recommend you see your doctor and have the genital wart treated.