When the oceans first formed were they salty

Have a look at,

http://www.palomar.edu/oceanography/salty_ocean.htm

I am not sure what grade you are at. You might also find this of interest, particularly Figure 4.

http://www.whoi.edu/cms/files/msaito/2005/3/Saito_ICA_2003_1802.pdf

When the oceans first formed, about 4.5 billion years ago, they would not have been salty yet. The early Earth's oceans were formed from the water vapor released during volcanic activity and the process known as "outgassing," as well as from comets and asteroids containing water that collided with the planet.

At this early stage, the oceans would have been relatively fresh, similar to the water we have in rivers and lakes. Over time, however, the oceans became salty due to a process called "weathering." This process involves the erosion of rocks on the Earth's surface, which releases various minerals and salts into the water.

Rainfall and rivers carrying the dissolved minerals from the land into the oceans gradually increased their salt content over millions of years. The most common salt in the oceans is sodium chloride, or common table salt. It is estimated that the oceans reached their current level of salinity around 2.5 billion years ago.

So, to answer your question, when the oceans first formed, they were not salty, but they became salty over a long period of time due to the weathering of rocks on the Earth's surface.