It is generally not recommended to paint over sap, as it can seep through the paint and cause discoloration or bubbling. Before painting, it is best to remove the sap using appropriate methods and ensure the wood is clean and dry.