JOSM is not a drawing software. It is since possible to use the "F" function which follows existing ways when creating a new one.