Doubt in perceptron

I’m practising on the perceptron model where I have taken the random toy data.
After running the perceptron model and plotting the straight line using weights then I had a doubt That is can data points be on straight lines(generated by model) or not as shown in the graph?

Yes, data points can be on the straight line as well as on either side of the line. If so, it means that data is not completely linearly separable.

Yes they can be on the slope sometimes.