The Botox that you received to your forehead should not have any effect on your sunburn. You do not need to see your doctor because of the Botox but if you are having issues with the sunburn, such as swelling and blistering, then you should been seen. The sunburn should eventually heal and your Botox result should not be affected.
Botox shouldn't be affected by a sunburn. The botox will have diffused into the tissues, which are much deeper than the epidermis and dermis layers of the skin where a sunburn happens. Sunburns will, however, cause accelerated aging of the skin and should be avoided if you are trying to prevent fine lines and wrinkles from occurring.