Да, вы делаете.Вы можете доказать это себе ...
x <- rep(1:5, 20)
y <- rnorm(100)
# not converting to factors
m1 <- lm (y ~ x)
# converting to factors
m2 <- lm(y ~ as.factor(x) )
summary(m1) # one fitted coefficent
summary(m2) # five fitted coefficients